<template>
	<view>
		<userMine v-if="user_status === 1" :userStatus.sync="user_status" />

		<technicianMine v-if="user_status === 2" :userStatus.sync="user_status" />

		<tabBar :current="2" />
	</view>
</template>

<script>
	import tabBar from "@/subPages/components/technician/tabBar/tabBar.vue";
	import userMine from "@/subPages/components/mine/mine_user.vue";
	import technicianMine from "@/subPages/components/mine/mine_technician.vue";
	export default {
		components: {
			tabBar,
			userMine,
			technicianMine,
		},
		data() {
			return {
				user_status: this.$stoarge.getUserStatus(), //1:普通用户 2:技师
			};
		},
		onShow() {
			if (this.user_status === 1) {
				uni.$emit("onUserShow");
			} else if (this.user_status === 2) {
				uni.$emit("onTechnicianShow");
			}
		},
	};
</script>
